 <%@ page language="java" contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false" %>
<!DOCTYPE html>
<html>
   <head>
      <title>秒杀列表页</title>
      	<%@include file = "common/head.jsp" %>
      	<%@include file = "common/tag.jsp" %>
   </head>
      
	 <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	 
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  	<%--jQuery countDown倒计时插件--%>
	<script src="http://cdn.bootcss.com/jquery.countdown/2.1.0/jquery.countdown.min.js"></script>
   	<%--jQuery Cookie操作插件--%>
	<script src="http://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
   <body>
   	<div class="container">
   		<div class="panel panel-default">
   			<div class="panel-heading text-center">
   				<h1>秒杀列表</h1>
   			</div>
   			<div class="panel-body">
   				<table class="table table-hover">
   					<thead>
   						<tr>
   							<tf>
   								<th>id</th>
   								<th>名称</th>
   								<th>库存</th>
   								<th>开始时间</th>
   								<th>结束时间</th>
   								<th>详情页</th>
   							</tf>
   						</tr>
   					</thead>
   					<tbody>
   						<c:forEach var="sk" items="${list}">
   							<tr>
   								<td>${sk.seckillId}</td>
   								<td>${sk.name}</td>
   								<td>${sk.number}</td>
   								<td>
   									<fmt:formatDate value="${sk.startTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
   								</td>
   								<td>
   									<fmt:formatDate value="${sk.endTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
								</td>
   								<td>
   									<fmt:formatDate value="${sk.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
								</td>
								<td>
									<a class="btn btn-info" href="/Demo/seckill/${sk.seckillId}/detail" target="_blank">Link</a>
								</td>
   							</tr>
   						</c:forEach>
   					</tbody>
   				</table>
   			</div>
   		</div>
   	</div>
   </body>
</html>